package hc.bre.calc.scorecard

import com.fasterxml.jackson.annotation.JsonInclude;
import hc.bre.cmn.ReferItem

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
class ScLeafItem extends ReferItem{
	BigDecimal score;
	Integer reasonId;	//null || 0 for no action
	String userdef;	//null || '' for no action

	public ScLeafItem load(Map map) {
		super.load(map);
		score = map['score'] as BigDecimal
		reasonId = map['reasonId'] as Integer;
		userdef = map['userdef']

		return this;
	}
}
